package com.dayuan.dao;

import org.mybatis.spring.annotation.MapperScan;

import com.dayuan.bean.Stock;

@MapperScan
public interface StockMapper {

	 /*查询库存量（悲观锁）*/
	public Stock selectStock(Integer goodsId);
	
	/*减库存*/
	public int updateStock(Stock stock);
	
}
